package com.wolfalpha.lwtool.vo;

import java.io.Serializable;

/**
 * 狼王job实体
 * 
 * @author ttStudio
 * 
 */
public class LWCompany implements Serializable {

	private static final long serialVersionUID = -5142140157278748644L;

	private String user_id; // 公司的id
	private String license_pic;
	private String location;
	private String website;
	private String tel;
	private String contact;
	private String intro;
	private String size;
	private int field;
	private String category;
	private String email;
	private String address;
	private int is_audited;
	private String name;
	private String license;

	/** id:1221,name:faf,saff:sa..... **/
	public LWCompany(String cf) {
		if (cf.contains(":null,")) {
			cf = cf.replaceAll(":null,", ": \",");
		}
		String tme[] = cf.split("\",\"");
		for (int i = 0; i < tme.length; i++) {
			tme[i] = tme[i].replaceAll("\"", "");
			System.out.println("aaaaaaaaaa: " + tme[i]);
			String v = tme[i].split(":")[0];
			String k = "";
			try {
				k  = tme[i].split(":")[1];
			} catch (ArrayIndexOutOfBoundsException e) {
				e.printStackTrace();
				k = " ";
			}
			if (v.equals("user_id")) {
				this.user_id = k;
			} else if (v.equals("license")) {
				this.license = k;
			} else if (v.equals("name")) {
				this.name = k;
			} else if (v.equals("category")) {
				this.category = k;
			} else if (v.equals("contact")) {
				this.contact = k;
			} else if (v.equals("tel")) {
				this.tel = k;
			} else if (v.equals("license_pic")) {
				this.license_pic = k;
			} else if (v.equals("address")) {
				this.address = k;
			} else if (v.equals("size")) {
				this.size = k;
			} else if (v.equals("field")) {
				this.field = Integer.parseInt(k);
			} else if (v.equals("email")) {
				this.email = k;
			} else if (v.equals("intro")) {
				this.intro = k;
			} else if (v.equals("is_audited")) {
				this.is_audited = Integer.parseInt(k);
			} else if (v.equals("location")) {
				this.location = k;
			} else if (v.equals("website")) {
				this.website = k;
			}
		}
	}

	public String getUser_id() {
		return user_id;
	}

	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}

	public String getLicense_pic() {
		return license_pic;
	}

	public void setLicense_pic(String license_pic) {
		this.license_pic = license_pic;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getSize() {
		return size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public int getField() {
		return field;
	}

	public void setField(int field) {
		this.field = field;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public int getIs_audited() {
		return is_audited;
	}

	public void setIs_audited(int is_audited) {
		this.is_audited = is_audited;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLicense() {
		return license;
	}

	public void setLicense(String license) {
		this.license = license;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
